package com.ada.service.bean;

import com.ada.service.HelloService1;
import com.ada.service.HelloService2;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ConsumerComponent {
    @Reference
    private HelloService1 helloService1;

    @Reference
    private HelloService2 helloService2;

    public String  sayHello1(String name){
        return helloService1.sayHello(name);
    }

    public String  sayHello2(String name){
        return helloService2.sayHello(name);
    }
}
